package blocos;

import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JLabel;

@SuppressWarnings("serial")
public class IntroFrame extends JFrame{
	String slash;
	
	
	public IntroFrame(){
		super("Bem Vindo!");
		this.setSize(800,600);
		this.setLocationRelativeTo(null);
		this.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
		this.setUndecorated(true);
		if(OSDetector.isWindows()) slash = "\\";
		else slash = "/";
		Icon icon = new ImageIcon(System.getProperty("user.dir")+slash+"images"+slash+"splash.png");
		JLabel label = new JLabel();
		label.setBounds(0, 0, 800, 600);
		label.setIcon(icon);
		this.add(label);	
		this.setVisible(true);
	}

}
